<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品修改</title>
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    <script src="./js/vue.js" type="text/javascript"></script>
    <script src="./js/axios.min.js" type="text/javascript"></script>
</head>
<body>
<!--Begin Header Begin-->
<div class="soubg">
    <div class="sou">
        <span class="fr">
        	<span class="fl">你好，请<a href="Login.html">登录</a>&nbsp; <a href="Regist.html" style="color:#ff4e00;">免费注册</a>&nbsp; </span>
            <span class="fl">|&nbsp;关注我们：</span>
            <span class="s_sh"><a href="#" class="sh1">新浪</a><a href="#" class="sh2">微信</a></span>
            <span class="fr">|&nbsp;<a href="#">手机版&nbsp;<img src="images/s_tel.png" align="absmiddle" /></a></span>
        </span>
    </div>
</div>
<!--End Header End-->
<!--Begin Login Begin-->
<div class="log_bg">
    <div class="top">
        <div class="logo"><a href="Index.html"><img src="images/logo.png" /></a></div>
    </div>
    <div class="regist" id="updateProduct" >
        <!--        <div class="log_img"><img src="images/l_img.png" width="611" height="425" /></div>-->
        <div class="reg_c" style="float: none">
            <form>
                <table border="0" style="width:420px; font-size:14px; margin-top:20px;" cellspacing="0" cellpadding="0">
                    <tr height="50" valign="top">
                        <td width="95">&nbsp;</td>
                        <td>
                            <span class="fl" style="font-size:24px;">商品修改</span>
                            <a style="float:right;width: 60px;height:30px;background-color:#f75006;text-align: center;color:white
                           ;margin-right:10px;line-height: 30px;font-size: 13px"
                               href="/api/ProductManage.html">返回</a>
                        </td>
                    </tr>
                    <tr height="50">
                        <td align="right"><font color="#ff4e00">*</font>&nbsp;商品名 &nbsp;</td>
                        <td><input type="text" v-model="product.name" class="l_user" /></td>
                    </tr>
                    <tr height="50">
                        <td align="right"><font color="#ff4e00">*</font>&nbsp;单价 &nbsp;</td>
                        <td><input type="text" v-model="product.price" class="l_user" @blur=""/><span ref="lg_name" style="font-size:10px;"></span></td>
                    </tr>
                    <tr height="50">
                        <td align="right"><font color="#ff4e00">*</font>&nbsp;库存 &nbsp;</td>
                        <td><input type="text" v-model="product.stock" class="l_email" /></td>
                    </tr>
                    <tr height="50">
                        <td align="right"><font color="#ff4e00">*</font>&nbsp;描述 &nbsp;</td>
                        <td><input type="text" v-model="product.description" class="l_tel" /></td>
                    </tr>
                    <tr height="50">
                        <td align="right"><font color="#ff4e00">*</font>&nbsp;图片 &nbsp;</td>
                        <td><img :src="image" width="100px">
                            <input type="file" @change="getFile"/>
                        </td>
                    </tr>
                    <tr height="50">
                        <td align="right"><font color="#ff4e00">*</font>&nbsp;所属 &nbsp;</td>
                        <td>
                            一级
                            <select v-model="product.categoryLevel1Id" @change="getUpdateLevel2">
                                <option  :value="0">--请选择--</option>
                                <option v-for="p in firstLevel" :value="p.id">
                                    {{p.name}}
                                </option>
                            </select>
                            &nbsp;二级
                            <select v-model="product.categoryLevel2Id" @change="getUpdateLevel3">
                                <option  :value="0">--请选择--</option>
                                <option v-for="p in secondLevel" :value="p.id">
                                    {{p.name}}
                                </option>
                            </select>
                            &nbsp;三级
                            <select v-model="product.categoryLevel3Id">
                                <option  :value="0">--请选择--</option>
                                <option v-for="(p,index) in thirdLevel" :value="p.id" :key="index"  :selected="index==0">
                                    {{p.name}}
                                </option>
                            </select>
                        </td>
                    </tr>
                    <tr height="60">
                        <td>&nbsp;</td>
                        <td><input ref="updateSave" type="button" value="保存修改" class="log_btn" @click="updateSave"/></td>
                    </tr>
                </table>
            </form>
        </div>
        <transition name="hello">
            <div id="customBox" v-show="infoFlag">
                <div id="customInfo">
                    <div>
                        <span class="closeInfo" @click="closeInfo">X</span>
                        <p>
                            {{infoText}}
                        </p>
                    </div>
                </div>
            </div>
        </transition>

    </div>
</div>
<script src="js/interceptor.js" type="text/javascript"></script>
<script src="js/updateProduct.js"></script>
<!--End Login End-->
<!--Begin Footer Begin-->
<div class="btmbg">
    <div class="btm">
        备案/许可证编号：蜀ICP备12009302号-1-www.dingguagua.com   Copyright © 2015-2018 尤洪商城网 All Rights Reserved. 复制必究 , Technical Support: Dgg Group <br />
        <img src="images/b_1.gif" width="98" height="33" /><img src="images/b_2.gif" width="98" height="33" /><img src="images/b_3.gif" width="98" height="33" /><img src="images/b_4.gif" width="98" height="33" /><img src="images/b_5.gif" width="98" height="33" /><img src="images/b_6.gif" width="98" height="33" />
    </div>
</div>
<!--End Footer End -->

</body>
</html>